package com.zsc.shixun.model.comment;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 评论管理VO
 * </p>
 *
 * @author ZWYZY
 * @since 2020/6/18
 */
@Data
public class CommentVO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "文章标题")
    private String title;

    @ApiModelProperty(value = "评论具体内容")
    private String content;

    @ApiModelProperty(value = "评论用户的ip地址")
    private String ip;

    @ApiModelProperty(value = "评论状态")
    private String status;

    @ApiModelProperty(value = "评论用户用户名")
    private String author;
    @ApiModelProperty(value = "用户id,关联b_user.id")
    private Long userId;

    @ApiModelProperty(value = "文章id，关联b_article.id")
    private Long articleId;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")//数据库导出页面时json格式化
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")//数据库导出页面时json格式化
    private Date updateTime;
}
